# Once done, this will define
#
#  MV_PASS_INCLUDE_DIR - the MAXVISION include directory
#  MV_PASS_LIBRARY_DIR - the MAXVISION library directory
#  MV_PASS_LIBS - link these to use MAXVISION
#
#  ......

MACRO(LOAD_PASSPORT_ALGO os arch)
    #MESSAGE(INFO "--------------------------------")
    #MESSAGE(STATUS "3RDPARTY_DIR: ${3RDPARTY_DIR}")
    #FIND_FILE(SPDLOG_INCLUDE_DIR include ${3RDPARTY_DIR} NO_DEFAULT_PATH)
    #FIND_FILE(SPDLOG_LIBRARY_DIR lib ${3RDPARTY_DIR} NO_DEFAULT_PATH)
    SET(3RDPARTY_DIR ${PROJECT_SOURCE_DIR}/3rdparty/target)
    SET(MV_PASS_INCLUDE_DIR ${3RDPARTY_DIR}/include/maxvision)
    SET(MV_PASS_LIBRARY_DIR ${3RDPARTY_DIR}/lib/${${os}}_${${arch}}/maxvision)

    IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
        SET(MV_PASS_LIBS passport_api mv_alg_common_api mv_verification
        crypto ssl rknn_api rga)
    ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
        SET(MV_PASS_LIBS jsoncpp)
    ENDIF (CMAKE_SYSTEM_NAME MATCHES "Linux")
ENDMACRO()